package tools.cyan.com.myapplication.bean;

import com.cyan.tools.bean.Result;

import java.util.ArrayList;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by pc on 2018/4/25.
 */

public interface ApiService {
    @GET("phone/getRecords")
    Observable<Result<ArrayList<PhoneRecord>>> getPhoneRecords(@Query("id")String id, @Query("limit")int limit);
    @FormUrlEncoded
    @POST("login")
    Observable<Result<Token>> login(@Field("name") String name, @Field("password") String password);
}
